public class Jsrc12
{
    public static void main(String[] args)
    {
        // 流程控制
        int a = 7;
        int b = 15;
        if (a > b)
        {
            System.out.println("a > b");
        }
        else if (a + 1 < b)
        {
            System.out.println("a + 1 < b");
        }
        else
        {
            System.err.println("error");
        }

	// switch - case
    switch (b){
    case 8:
        break;
    case 15:
        System.out.println("15 ok");
        break;
    default:
        break;
    }
	// for loop
    for (int i = a; a < b; a += 8)
    {
        System.out.println(a);
    }
    
    for(;;)
    {
        break;
    }

    
	// while loop
    while (a < b)
    {
        System.out.println(a);
        a += 8;
    }

	// do while
    do {
        System.out.println(a);
        a += 8;
    }while(a < b);

    }
}
